#pragma once
#include "BlockQueue.hpp"
#include <functional>

class Task
{
    Task(int x, int y) : a(x), b(y), result(0)
    {
    }
    ~Task() {}
    void Execute()
    {
        result = a + b;
    }
    void operator()()
    {
        Execute();
    }
    void Print()
    {
        std::cout << a << "+" << b << " = " << result << std::endl;
    }

private:
    int a;
    int b;
    int result;
};
using func_t = std::function<void()>;

void PrintLog()
{
    std::cout << "我是一个日志任务" << std::endl;
}